﻿using System.Collections.ObjectModel;
using System.Data;
using Entities;

namespace DataAccess
{
    public interface ICountyDataAccess
    {
        /// <summary>
        /// Gets all counties belong to specified government office region
        /// </summary>
        /// <param name="govOfficeRegionId">The gov office region id.</param>
        /// <returns></returns>
        Collection<County> GetCountyByGovOfficeRegion(string govOfficeRegionId);
        /// <summary>
        /// Extracts the raw data to Entity county
        /// </summary>
        /// <param name="dataReader">The data reader.</param>
        /// <returns></returns>
        County ExtractRawData(IDataRecord dataReader);
    }
}
